package com.cl.blog.service;

import com.cl.blog.entity.BUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cl.blog.vo.LoginVo;
import com.cl.blog.vo.RegisterUserVo;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
* @author object
* @description 针对表【b_user】的数据库操作Service
* @createDate 2024-03-15 14:39:07
*/
public interface BUserService extends IService<BUser> {

	BUser login(LoginVo loginVo);

	void logout(String userId);

	boolean banByUserId(Integer id, HttpServletRequest request);

	boolean deleteById(Integer id, HttpServletRequest request) throws Exception;

	BUser insertUser(RegisterUserVo registerUser);

	BUser register(LoginVo loginVo);

	BUser getCurrentId(String token);

	Map<Object, Object> getUserInfo(Integer contentId, Integer id, String token);

	int like(Integer contentId, String token);

	int collect(Integer contentId, String token);

	Object getUser(Integer userId, HttpServletRequest request);

	boolean deleteByIdAndStatus(Integer id, Integer status, HttpServletRequest request);

}
